require 'fileutils'
require 'qiniu'
require 'digest'
require 'openssl'
require 'base64'
require 'time'
require 'net/http'
require 'uri'
class TestApi < Grape::API
	$redis = Redis.new()
	#通用接口
	version 'v1', using: :path
	format :json
	default_format :json
	formatter :json, Grape::Formatter::Rabl
	resource :test do
		desc '测试用'
		get 'ryyb' do
			#puts WorkManageService.sub_contractor_upload(50,1)
			# puts WorkManageService.project_team(23,50)
			# YiBuService.cj_yb()
			# YiBuService.qy_yb()
			# YiBuCommitService.qy_qr()
			# YiBuCommitService.cj_qr
			# YiBuService.bz_yb()
			# YiBuCommitService.bz_qr()
			# YiBuService.ry_yb
			# CommonApi.send_yzm("张三", "123", "http:aa.aa", 13808970140)
			YiBuCommitService.ry_qr()


		end
		desc '测试用'
		get 'kqyb' do
			#puts WorkManageService.sub_contractor_upload(50,1)
			# puts WorkManageService.project_team(23,50)
			# YiBuService.cj_yb()
			# YiBuService.qy_yb()
			# YiBuCommitService.qy_qr()
			# YiBuCommitService.cj_qr
			# YiBuService.bz_yb()
			# YiBuCommitService.bz_qr()
			# YiBuService.ry_yb
			# CommonApi.send_yzm("张三", "123", "http:aa.aa", 13808970140)
			YiBuCommitService.kq_qr()
			# YiBuService.kq_yb()
		end

		desc '测试用'
		get 'gzyb' do
			#puts WorkManageService.sub_contractor_upload(50,1)
			# puts WorkManageService.project_team(23,50)
			# YiBuService.cj_yb()
			# YiBuService.qy_yb()
			# YiBuCommitService.qy_qr()
			# YiBuCommitService.cj_qr
			# YiBuService.bz_yb()
			# YiBuCommitService.bz_qr()
			# YiBuService.ry_yb
			# CommonApi.send_yzm("张三", "123", "http:aa.aa", 13808970140)
			YiBuCommitService.gz_qr()
			# YiBuService.gz_yb()
		end
		get 'jtcyb' do
			#puts WorkManageService.sub_contractor_upload(50,1)
			# puts WorkManageService.project_team(23,50)
			# YiBuService.cj_yb()
			# YiBuService.qy_yb()
			# YiBuCommitService.qy_qr()
			# YiBuCommitService.cj_qr
			# YiBuService.bz_yb()
			# YiBuCommitService.bz_qr()
			# YiBuService.ry_yb
			# CommonApi.send_yzm("张三", "123", "http:aa.aa", 13808970140)
			YiBuCommitService.jtc_qr()
			#YiBuService.jtc_yb()
		end
	end
end